﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GSLMS.Services.Interface;
using GSLMS.Entity;
using GSLMS.Entity.DTO;
using GSLMS.DAL;
namespace GSLMS.Services
{
	/// <summary>
	/// 此层为服务层，已经继承了父类BaseService,已经定义好方法请查看BaseService类；若需要自定义方法请在此层增加并在数据层及接口层定义相关的方法
	/// </summary>
	public partial class SADU_SPECAIL: BaseService<TB_ADU_SPECAIL>, IADU_SPECAIL
	{
		private static readonly GSLMS.DAL.Oracle.ADU_SPECAIL dal = new GSLMS.DAL.Oracle.ADU_SPECAIL();
		public override BaseDAL<TB_ADU_SPECAIL> DAL
		{
			get { return dal; }
		}

        /// <summary>
        /// 特批申请部门审批
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public bool SpecailBMAudit(GSLMS.Entity.TB_ADU_SPECAIL model)
        {
            return dal.SpecailBMAudit(model);
        }

        /// <summary>
        /// 分页提取特批申请审批数据
        /// </summary>
        public List<GSLMS.Entity.TB_ADU_SPECAIL> GetSpecailList(GSLMS.Entity.TB_ADU_SPECAIL searchParam)
        {
            return dal.GetSpecailList(searchParam);
        }

        /// <summary>
        /// 通过特批业务类型和父ID提取已审批信息
        /// </summary>
        /// <param name="pid"></param>
        /// <param name="specialType"></param>
        /// <returns></returns>
        public List<GSLMS.Entity.TB_ADU_SPECAIL> GetAllByTypeAndPID(long pid, int specialType)
        {
            return dal.GetAllByTypeAndPID(pid, specialType);
        }
	}
}
